#ifndef FINDAUTOKEYLENGHT_H
#define FINDAUTOKEYLENGHT_H

#include <QThread>

class FindAutokeyLenght : public QThread
{
    Q_OBJECT
public:
    explicit FindAutokeyLenght(QByteArray input, QByteArray alphabet, int maxLength, bool doXor, QObject *parent = 0);

protected:
    void run();
    
signals:
    void done (int keyLenght);
    
public slots:

private:
    QByteArray input;
    QByteArray alphabet;
    int maxLength;
    bool doXor;

    QByteArray vigenerize(QByteArray autokey, int keyLenght);

};

#endif // FINDAUTOKEYLENGHT_H
